{% import "@WebsiteBundle/macros/pagination.html.twig" as macros %}
<div class="card">
  <div class="card-header">
    共<span class="fontColorRed">{{count}}</span>个课程
  </div>
  <div class="card-body p-1">
    {% if list %}
    <ul class="list-group list-group-flush p-0">
        {% for item in list %}
        <li class="list-group-item">
            <div class="row row-deck row-cards">
                <div class="col-lg-8">
<a href="{{ path('app_learn_courseList', {courseId:item['id']}) }}">{{ item['name'] }}</a>
                </div>
                <div class="col-lg-4 text-center">
<ol class="breadcrumb" aria-label="breadcrumbs">
  <li class="breadcrumb-item">已学习<span>11</span>课时</li>
  <li class="breadcrumb-item">共<span>{{ item['courseHour'] }}</span>课时</li>
</ol>
                </div>
            </div>
        </li>
        {% endfor %}
      </ul>
    {% else %}
		{% include '@WebsiteBundle/empty.html.twig' %}
    {% endif %}
    <div>
      {{ macros.pagination(pagination) }}
    </div>
  </div>
</div>
